* unexelf.c: Don't assume ElfW (Half) fits in int.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 May 2013 20:55:47 +0000 (13:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 May 2013 20:55:47 +0000 (13:55 -0700)
commitd541e2aaf54c9b77c93a1aa8681c019638e1af03
treee5705a0e8ba6571f56ef5c5cc880c95eb359fa56
parent73c6c15fb775411da455808c9576980ee3a813d1
* unexelf.c: Don't assume ElfW (Half) fits in int.

(entry_address, find_section, unexec): Use ptrdiff_t, not int,
when dealing with ElfW (Half) values, since they can exceed 2**31
on 64-bit OpenBSD hosts.  Problem reported privately by Han Boetes.
(entry_address): Omit unused NUM arg.  All uses changed.
src/ChangeLog
src/unexelf.c